﻿$def with (comments)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
<body>
<div id="css_select_1">
<p>留言板</p>
</div>

<form method="post" action="/guestbook">
<p>姓名<input type="text" name="author" /><br />
内容<input type="text" name="content" /><br />
<input type="submit" value="提交" /></p>
</form>
<p>留言</p>
<ul id="orderedlist">
$for i,comment in enumerate(comments):
    <li>$comment.author : $comment.content,$comment.t</li>
</ul>
</body>
</html>